/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.viettel.bkno.visionone.business.interfaces;

import com.viettel.bkno.visionone.entities.CachedInfo;
import com.viettel.bkno.visionone.entities.User;
import com.viettel.bkno.visionone.exception.CoreServiceException;

/**
 *
 * @author hien
 */
public interface IUserManager {
    String authen(String user, String password)throws CoreServiceException;

    public void addUser(User user) throws CoreServiceException;
    
    /**
     * Get session
     * @param username
     * @param token
     * @return
     * @throws CoreServiceException 
     */
    public CachedInfo getSessionInfo(String username, String token) throws CoreServiceException;
}
